#coding:utf-8
import json,requests
code = requests.get("http://127.0.0.1/rejson/hscene05").text
jsons = json.loads(code)
strs = jsons["str"]
bgm = jsons["bg"]
dwave = jsons["Dwave"]

i = 0
print "Starting......"
for i in range(len(strs)):
    if str(i) in bgm:
        print "Load_BGM: ",bgm[str(i)]
        #这里换成加载bgm的代码
    if str(i) in dwave:
        print "Load_DWAVE: ",dwave[str(i)]
        #这里换成驾照语音的代码
    print str(i),strs[i]
